package com.zf.shuashua.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

public class LikeVideo1 implements Parcelable {

    /**
     * data : [{"id":21,"user_id":4,"likable_id":8,"likable_type":"iBrand\\ShuaBao\\Core\\Models\\Video","created_at":"2019-11-16 12:15:41","updated_at":"2019-11-16 12:15:41","likable":{"id":8,"type":2,"user_id":3,"avatar":"http://outin-758305b8045a11eaa13600163e1c94a4.oss-cn-shanghai.aliyuncs.com/29a3730d4dcf41959d79ab13b5090100/snapshots/ca27e3aa380d4f4fb89637db367dbd02-00001.jpg","location":null,"media_id":"29a3730d4dcf41959d79ab13b5090100","media_url":"https://outin-758305b8045a11eaa13600163e1c94a4.oss-cn-shanghai.aliyuncs.com/sv/1e782934-16e5e4d161f/1e782934-16e5e4d161f.mp4","length":9,"description":"这是手写的描述3333","advert_url":null,"comment_count":0,"praise_count":1,"forward_count":0,"status":1,"recommended_at":"2019-11-15 11:33:34","meta":null,"created_at":"2019-11-15 11:33:34","updated_at":"2019-11-16 12:15:41","deleted_at":null,"title":"5555.mp4","sort":99,"advert_store":null,"meta_info":null,"is_recommend":true,"is_praise_user":true,"is_video_user":false,"created_time":"11-15","praise_count_text":1}},{"id":20,"user_id":4,"likable_id":6,"likable_type":"iBrand\\ShuaBao\\Core\\Models\\Video","created_at":"2019-11-16 12:15:35","updated_at":"2019-11-16 12:15:35","likable":{"id":6,"type":2,"user_id":1,"avatar":"http://q0u75wwd5.bkt.clouddn.com/20191114/385d4602a43646ca7628992280e3f29f.png","location":null,"media_id":"429f29cb63564ffdac9f4d55485792b9","media_url":"https://outin-758305b8045a11eaa13600163e1c94a4.oss-cn-shanghai.aliyuncs.com/sv/3de7ee04-16e59c84e25/3de7ee04-16e59c84e25.mp4","length":14,"description":"5565000","advert_url":null,"comment_count":0,"praise_count":2,"forward_count":0,"status":1,"recommended_at":"2019-11-15 11:32:28","meta":null,"created_at":"2019-11-15 11:31:53","updated_at":"2019-11-16 12:15:35","deleted_at":null,"title":"玖玖 2019-11-11 17.25.02.mp4","sort":99,"advert_store":null,"meta_info":null,"is_recommend":true,"is_praise_user":true,"is_video_user":false,"created_time":"11-15","praise_count_text":2}},{"id":19,"user_id":4,"likable_id":7,"likable_type":"iBrand\\ShuaBao\\Core\\Models\\Video","created_at":"2019-11-16 12:11:25","updated_at":"2019-11-16 12:11:25","likable":{"id":7,"type":2,"user_id":2,"avatar":"http://outin-758305b8045a11eaa13600163e1c94a4.oss-cn-shanghai.aliyuncs.com/0693061707eb4d82ae5827c44d8fc276/snapshots/3a647ec2980c4b65ae0b82a9a2304528-00001.jpg","location":null,"media_id":"0693061707eb4d82ae5827c44d8fc276","media_url":"https://outin-758305b8045a11eaa13600163e1c94a4.oss-cn-shanghai.aliyuncs.com/sv/56b0c45e-16e5e65ae2a/56b0c45e-16e5e65ae2a.mp4","length":11,"description":"这是描述","advert_url":null,"comment_count":0,"praise_count":1,"forward_count":0,"status":1,"recommended_at":"2019-11-15 11:33:01","meta":null,"created_at":"2019-11-15 11:33:01","updated_at":"2019-11-16 12:11:25","deleted_at":null,"title":"标题.mp4","sort":99,"advert_store":null,"meta_info":null,"is_recommend":true,"is_praise_user":true,"is_video_user":false,"created_time":"11-15","praise_count_text":1}}]
     * meta : {"pagination":{"total":3,"count":3,"per_page":10,"current_page":1,"total_pages":1,"links":{"first":"http://shuabao.kelai.tech/api/user/video/like/list?page=1","last":"http://shuabao.kelai.tech/api/user/video/like/list?page=1","prev":null,"next":null}}}
     * status : true
     */

    private MetaBean meta;
    private boolean status;
    private List<DataBean> data;

    public MetaBean getMeta() {
        return meta;
    }

    public void setMeta(MetaBean meta) {
        this.meta = meta;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class MetaBean implements Parcelable {
        /**
         * pagination : {"total":3,"count":3,"per_page":10,"current_page":1,"total_pages":1,"links":{"first":"http://shuabao.kelai.tech/api/user/video/like/list?page=1","last":"http://shuabao.kelai.tech/api/user/video/like/list?page=1","prev":null,"next":null}}
         */

        private PaginationBean pagination;

        public PaginationBean getPagination() {
            return pagination;
        }

        public void setPagination(PaginationBean pagination) {
            this.pagination = pagination;
        }

        public static class PaginationBean implements Parcelable {
            /**
             * total : 3
             * count : 3
             * per_page : 10
             * current_page : 1
             * total_pages : 1
             * links : {"first":"http://shuabao.kelai.tech/api/user/video/like/list?page=1","last":"http://shuabao.kelai.tech/api/user/video/like/list?page=1","prev":null,"next":null}
             */

            private int total;
            private int count;
            private int per_page;
            private int current_page;
            private int total_pages;
            private LinksBean links;

            public int getTotal() {
                return total;
            }

            public void setTotal(int total) {
                this.total = total;
            }

            public int getCount() {
                return count;
            }

            public void setCount(int count) {
                this.count = count;
            }

            public int getPer_page() {
                return per_page;
            }

            public void setPer_page(int per_page) {
                this.per_page = per_page;
            }

            public int getCurrent_page() {
                return current_page;
            }

            public void setCurrent_page(int current_page) {
                this.current_page = current_page;
            }

            public int getTotal_pages() {
                return total_pages;
            }

            public void setTotal_pages(int total_pages) {
                this.total_pages = total_pages;
            }

            public LinksBean getLinks() {
                return links;
            }

            public void setLinks(LinksBean links) {
                this.links = links;
            }

            public static class LinksBean implements Parcelable {
                /**
                 * first : http://shuabao.kelai.tech/api/user/video/like/list?page=1
                 * last : http://shuabao.kelai.tech/api/user/video/like/list?page=1
                 * prev : null
                 * next : null
                 */

                private String first;
                private String last;
                private String prev;
                private String next;

                public String getFirst() {
                    return first;
                }

                public void setFirst(String first) {
                    this.first = first;
                }

                public String getLast() {
                    return last;
                }

                public void setLast(String last) {
                    this.last = last;
                }

                public Object getPrev() {
                    return prev;
                }

                public void setPrev(String prev) {
                    this.prev = prev;
                }

                public Object getNext() {
                    return next;
                }

                public void setNext(String next) {
                    this.next = next;
                }

                @Override
                public int describeContents() {
                    return 0;
                }

                @Override
                public void writeToParcel(Parcel dest, int flags) {
                    dest.writeString(this.first);
                    dest.writeString(this.last);
                    dest.writeString(this.prev);
                    dest.writeString(this.next);
                }

                public LinksBean() {
                }

                protected LinksBean(Parcel in) {
                    this.first = in.readString();
                    this.last = in.readString();
                    this.prev = in.readParcelable(Object.class.getClassLoader());
                    this.next = in.readParcelable(Object.class.getClassLoader());
                }

                public static final Creator<LinksBean> CREATOR = new Creator<LinksBean>() {
                    @Override
                    public LinksBean createFromParcel(Parcel source) {
                        return new LinksBean(source);
                    }

                    @Override
                    public LinksBean[] newArray(int size) {
                        return new LinksBean[size];
                    }
                };
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeInt(this.total);
                dest.writeInt(this.count);
                dest.writeInt(this.per_page);
                dest.writeInt(this.current_page);
                dest.writeInt(this.total_pages);
                dest.writeParcelable(this.links, flags);
            }

            public PaginationBean() {
            }

            protected PaginationBean(Parcel in) {
                this.total = in.readInt();
                this.count = in.readInt();
                this.per_page = in.readInt();
                this.current_page = in.readInt();
                this.total_pages = in.readInt();
                this.links = in.readParcelable(LinksBean.class.getClassLoader());
            }

            public static final Creator<PaginationBean> CREATOR = new Creator<PaginationBean>() {
                @Override
                public PaginationBean createFromParcel(Parcel source) {
                    return new PaginationBean(source);
                }

                @Override
                public PaginationBean[] newArray(int size) {
                    return new PaginationBean[size];
                }
            };
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeParcelable(this.pagination, flags);
        }

        public MetaBean() {
        }

        protected MetaBean(Parcel in) {
            this.pagination = in.readParcelable(PaginationBean.class.getClassLoader());
        }

        public static final Creator<MetaBean> CREATOR = new Creator<MetaBean>() {
            @Override
            public MetaBean createFromParcel(Parcel source) {
                return new MetaBean(source);
            }

            @Override
            public MetaBean[] newArray(int size) {
                return new MetaBean[size];
            }
        };
    }

    public static class DataBean {
        /**
         * id : 21
         * user_id : 4
         * likable_id : 8
         * likable_type : iBrand\ShuaBao\Core\Models\Video
         * created_at : 2019-11-16 12:15:41
         * updated_at : 2019-11-16 12:15:41
         * likable : {"id":8,"type":2,"user_id":3,"avatar":"http://outin-758305b8045a11eaa13600163e1c94a4.oss-cn-shanghai.aliyuncs.com/29a3730d4dcf41959d79ab13b5090100/snapshots/ca27e3aa380d4f4fb89637db367dbd02-00001.jpg","location":null,"media_id":"29a3730d4dcf41959d79ab13b5090100","media_url":"https://outin-758305b8045a11eaa13600163e1c94a4.oss-cn-shanghai.aliyuncs.com/sv/1e782934-16e5e4d161f/1e782934-16e5e4d161f.mp4","length":9,"description":"这是手写的描述3333","advert_url":null,"comment_count":0,"praise_count":1,"forward_count":0,"status":1,"recommended_at":"2019-11-15 11:33:34","meta":null,"created_at":"2019-11-15 11:33:34","updated_at":"2019-11-16 12:15:41","deleted_at":null,"title":"5555.mp4","sort":99,"advert_store":null,"meta_info":null,"is_recommend":true,"is_praise_user":true,"is_video_user":false,"created_time":"11-15","praise_count_text":1}
         */

        private int id;
        private int user_id;
        private int likable_id;
        private String likable_type;
        private String created_at;
        private String updated_at;
        private LikableBean likable;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getUser_id() {
            return user_id;
        }

        public void setUser_id(int user_id) {
            this.user_id = user_id;
        }

        public int getLikable_id() {
            return likable_id;
        }

        public void setLikable_id(int likable_id) {
            this.likable_id = likable_id;
        }

        public String getLikable_type() {
            return likable_type;
        }

        public void setLikable_type(String likable_type) {
            this.likable_type = likable_type;
        }

        public String getCreated_at() {
            return created_at;
        }

        public void setCreated_at(String created_at) {
            this.created_at = created_at;
        }

        public String getUpdated_at() {
            return updated_at;
        }

        public void setUpdated_at(String updated_at) {
            this.updated_at = updated_at;
        }

        public LikableBean getLikable() {
            return likable;
        }

        public void setLikable(LikableBean likable) {
            this.likable = likable;
        }

        public static class LikableBean {
            /**
             * id : 8
             * type : 2
             * user_id : 3
             * avatar : http://outin-758305b8045a11eaa13600163e1c94a4.oss-cn-shanghai.aliyuncs.com/29a3730d4dcf41959d79ab13b5090100/snapshots/ca27e3aa380d4f4fb89637db367dbd02-00001.jpg
             * location : null
             * media_id : 29a3730d4dcf41959d79ab13b5090100
             * media_url : https://outin-758305b8045a11eaa13600163e1c94a4.oss-cn-shanghai.aliyuncs.com/sv/1e782934-16e5e4d161f/1e782934-16e5e4d161f.mp4
             * length : 9
             * description : 这是手写的描述3333
             * advert_url : null
             * comment_count : 0
             * praise_count : 1
             * forward_count : 0
             * status : 1
             * recommended_at : 2019-11-15 11:33:34
             * meta : null
             * created_at : 2019-11-15 11:33:34
             * updated_at : 2019-11-16 12:15:41
             * deleted_at : null
             * title : 5555.mp4
             * sort : 99
             * advert_store : null
             * meta_info : null
             * is_recommend : true
             * is_praise_user : true
             * is_video_user : false
             * created_time : 11-15
             * praise_count_text : 1
             */

            private int id;
            private int type;
            private int user_id;
            private String avatar;
            private Object location;
            private String media_id;
            private String media_url;
            private int length;
            private String description;
            private Object advert_url;
            private int comment_count;
            private int praise_count;
            private int forward_count;
            private int status;
            private String recommended_at;
            private Object meta;
            private String created_at;
            private String updated_at;
            private Object deleted_at;
            private String title;
            private int sort;
            private Object advert_store;
            private Object meta_info;
            private boolean is_recommend;
            private boolean is_praise_user;
            private boolean is_video_user;
            private String created_time;
            private int praise_count_text;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public int getUser_id() {
                return user_id;
            }

            public void setUser_id(int user_id) {
                this.user_id = user_id;
            }

            public String getAvatar() {
                return avatar;
            }

            public void setAvatar(String avatar) {
                this.avatar = avatar;
            }

            public Object getLocation() {
                return location;
            }

            public void setLocation(Object location) {
                this.location = location;
            }

            public String getMedia_id() {
                return media_id;
            }

            public void setMedia_id(String media_id) {
                this.media_id = media_id;
            }

            public String getMedia_url() {
                return media_url;
            }

            public void setMedia_url(String media_url) {
                this.media_url = media_url;
            }

            public int getLength() {
                return length;
            }

            public void setLength(int length) {
                this.length = length;
            }

            public String getDescription() {
                return description;
            }

            public void setDescription(String description) {
                this.description = description;
            }

            public Object getAdvert_url() {
                return advert_url;
            }

            public void setAdvert_url(Object advert_url) {
                this.advert_url = advert_url;
            }

            public int getComment_count() {
                return comment_count;
            }

            public void setComment_count(int comment_count) {
                this.comment_count = comment_count;
            }

            public int getPraise_count() {
                return praise_count;
            }

            public void setPraise_count(int praise_count) {
                this.praise_count = praise_count;
            }

            public int getForward_count() {
                return forward_count;
            }

            public void setForward_count(int forward_count) {
                this.forward_count = forward_count;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public String getRecommended_at() {
                return recommended_at;
            }

            public void setRecommended_at(String recommended_at) {
                this.recommended_at = recommended_at;
            }

            public Object getMeta() {
                return meta;
            }

            public void setMeta(Object meta) {
                this.meta = meta;
            }

            public String getCreated_at() {
                return created_at;
            }

            public void setCreated_at(String created_at) {
                this.created_at = created_at;
            }

            public String getUpdated_at() {
                return updated_at;
            }

            public void setUpdated_at(String updated_at) {
                this.updated_at = updated_at;
            }

            public Object getDeleted_at() {
                return deleted_at;
            }

            public void setDeleted_at(Object deleted_at) {
                this.deleted_at = deleted_at;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public int getSort() {
                return sort;
            }

            public void setSort(int sort) {
                this.sort = sort;
            }

            public Object getAdvert_store() {
                return advert_store;
            }

            public void setAdvert_store(Object advert_store) {
                this.advert_store = advert_store;
            }

            public Object getMeta_info() {
                return meta_info;
            }

            public void setMeta_info(Object meta_info) {
                this.meta_info = meta_info;
            }

            public boolean isIs_recommend() {
                return is_recommend;
            }

            public void setIs_recommend(boolean is_recommend) {
                this.is_recommend = is_recommend;
            }

            public boolean isIs_praise_user() {
                return is_praise_user;
            }

            public void setIs_praise_user(boolean is_praise_user) {
                this.is_praise_user = is_praise_user;
            }

            public boolean isIs_video_user() {
                return is_video_user;
            }

            public void setIs_video_user(boolean is_video_user) {
                this.is_video_user = is_video_user;
            }

            public String getCreated_time() {
                return created_time;
            }

            public void setCreated_time(String created_time) {
                this.created_time = created_time;
            }

            public int getPraise_count_text() {
                return praise_count_text;
            }

            public void setPraise_count_text(int praise_count_text) {
                this.praise_count_text = praise_count_text;
            }
        }
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeParcelable(this.meta, flags);
        dest.writeByte(this.status ? (byte) 1 : (byte) 0);
        dest.writeList(this.data);
    }

    public LikeVideo1() {
    }

    protected LikeVideo1(Parcel in) {
        this.meta = in.readParcelable(MetaBean.class.getClassLoader());
        this.status = in.readByte() != 0;
        this.data = new ArrayList<DataBean>();
        in.readList(this.data, DataBean.class.getClassLoader());
    }

    public static final Creator<LikeVideo1> CREATOR = new Creator<LikeVideo1>() {
        @Override
        public LikeVideo1 createFromParcel(Parcel source) {
            return new LikeVideo1(source);
        }

        @Override
        public LikeVideo1[] newArray(int size) {
            return new LikeVideo1[size];
        }
    };
}
